/*******************************************************************************
 * Copyright (c) 2004, 2009 Blue Bamboo International Inc. 
 * All rights reserved.
 *
 * Blue Bamboo PROPRIETARY/CONFIDENTIAL.
 *******************************************************************************/

package com.bambamboo.st;

/**
 * 
 * @author Nick.Tan
 * @since 2.0.0
 */
public interface IProcessor {

	/**
	 * process the <code>requestBuf</code> and return a byte array as response.
	 * 
	 * @param requestBuf the request byte array
	 * @return the response byte array (include empty byte array), or <code>null</code> if no response at all
	 * @throws Exception
	 */
	byte[] getResponse(byte[] requestBuf) throws Exception;
}
